﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;
using TanHuan.Authorize.DataAccess;
using TanHuan.Authorize.Model;
using TanHuan.Authorize.Common;

namespace TanHuan.Authorize.Biz
{
    public class AuthAppBiz
    {
        AuthAppDA aaDA = new AuthAppDA();

        /// <summary>
        /// 获取AuthApp
        /// </summary>
        /// <returns></returns>
        public List<AuthApp> GetAuthApp()
        {
            return aaDA.GetAuthApp();
        }

        /// <summary>
        /// 获取AuthApp
        /// </summary>
        /// <param name="pItem">分页实体</param>
        /// <returns></returns>
        public DataTable GetAuthApp(PageItem pItem)
        {
            return aaDA.GetAuthApp(pItem);
        }

        /// <summary>
        /// 获取一个AuthApp实体
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        public AuthApp GetAuthAppById(int id)
        {
            return aaDA.GetAuthAppById(id);
        }

        /// <summary>
        /// 创建一个AuthApp实体
        /// </summary>
        /// <param name="entity"></param>
        /// <returns></returns>
        public void CreateAuthApp(AuthApp entity)
        {
            aaDA.CreateAuthApp(entity);
        }

        /// <summary>
        /// 删除一个AuthApp实体
        /// </summary>
        /// <param name="entity"></param>
        /// <returns></returns>
        public void DeleteAuthApp(int id)
        {
            aaDA.DeleteAuthApp(id);
        }

        /// <summary>
        /// 修改一个AuthApp实体
        /// </summary>
        /// <param name="entity"></param>
        /// <returns></returns>
        public void EditAuthApp(AuthApp entity)
        {
            aaDA.EditAuthApp(entity);
        }
    }
}
